package zt.song.boot.controller;

import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author 宋伟宁
 * @Date 2023/11/8
 * @Version 1.0
 **/
@Controller
@Slf4j
public class HelloController {

    private static Logger logger= LoggerFactory.getLogger(HelloController.class);
    @GetMapping("/")
    public String hello() {
        logger.debug("这是日志的输出！");
        return "list";
    }
}
